const path = require("path");
const express = require("express")();

var template = require("art-template");

//拼接字符串
const views = path.join(__dirname, "views", "index.art");
var html = template(views, {
  name: "imycode",
  age: 20,
});
express.get("/", (req, res) => {
  res.send(html);
});

express.listen(3000);
